<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center" width="5%"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="25%">商品名称/商品金额</th>
            <th class="text-center" width="10%">支付客户</th>
            <th class="text-center" width="10%">用户性质</th>
            <th class="text-center" width="10%">支付时间</th>
            <th class="text-center" width="10%">推广收益</th>
            <th class="text-center" width="10%">奖励金收益</th>
            <th class="text-center" width="10%">结算状态</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center" width="5%"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="9" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="agentIncomeInfo : ${dataMap['list']}" th:attr="data-id=${agentIncomeInfo['id']}">
                <td class="text-center" th:text="${agentIncomeInfo['id']}"></td>
                <td class="text-center" th:text="${agentIncomeInfo['order']['shopNames']+' / '+agentIncomeInfo['shopPrice']}"></td>
                <td class="text-center" th:text="${agentIncomeInfo['user']['nickname']}"></td>
                <td class="text-center" th:text="${agentIncomeInfo['userType']} == 1?'普通客户':'下线客户'"></td>
                <td class="text-center" th:text="${#strings.substring(agentIncomeInfo['payTime'], 0, 16)}"></td>
                <td class="text-center" th:text="${agentIncomeInfo['incomeType']} == 1?${agentIncomeInfo['incomePrice']}:'——'"></td>
                <td class="text-center" th:text="${agentIncomeInfo['incomeType']} == 2?${agentIncomeInfo['bonusPrice']}:'——'"></td>
                <td class="text-center" th:text="${agentIncomeInfo['status']} == 1?'未结算':(${agentIncomeInfo['status']}==2?'结算中':'已结算')"></td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>